<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible"
        content="ie=edge">
  <title>ng-class</title>
  <script src="../lib/angular.1.7.8.js"></script>
  <style>
    .sky {
      color: white;
      background-color: lightblue;
      padding: 20px;
      font-family: "Courier New";
    }

    .tomato {
      background-color: coral;
      padding: 40px;
      font-family: Verdana;
    }

  </style>
</head>

<body ng-app
      ng-init="list=['sky', 'tomato']">
  <p>选择一个类</p>
  <select ng-model="home"
          ng-options="x for x in list">
  </select>
  <p>{{list}}<span>{{home}}</span></p>
  <div ng-class="home">
    <h1>Weclome Home!</h1>
    <p>I like It!</p>
  </div>
</body>

</html>
